/*    */ package system.staros.sblock1;
/*    */ 
/*    */ public class TypeMismatchException extends ZemException
/*    */ {
/*    */   private static final long serialVersionUID = 9115378805326306069L;
/*    */ 
/*    */   private static String toString(Class paramClass)
/*    */   {
/* 34 */     if (paramClass == Dictionary.class)
/* 35 */       return "dictionary";
/* 36 */     if (paramClass == ZemArray.class)
/* 37 */       return "array";
/* 38 */     if (paramClass == ZemBoolean.class)
/* 39 */       return "boolean";
/* 40 */     if (paramClass == ZemNumber.class)
/* 41 */       return "number";
/* 42 */     if (paramClass == ZemString.class) {
/* 43 */       return "string";
/*    */     }
/* 45 */     return paramClass.getName();
/*    */   }
/*    */ 
/*    */   public TypeMismatchException(SourcePosition paramSourcePosition, Class paramClass1, Class paramClass2)
/*    */   {
/* 50 */     super("Type mismatch - Excepted type '" + toString(paramClass1) + "' but got type '" + toString(paramClass2) + "'", paramSourcePosition);
/*    */   }
/*    */ }

/* Location:           D:\Марк\!IMPORTANT\staros\archive\version-2.260.zip
 * Qualified Name:     system.staros.sblock1.TypeMismatchException
 * JD-Core Version:    0.6.1
 */